var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
var _property = _decorator.property;
var _menu = _decorator.menu;
var _def_UIScale = function (e) {
  function _creator() {
    var t = null !== e && e.apply(this, arguments) || this;
    t.toScale = 1.1;
    t.time = .5;
    t.delay = .5;
    t.normalScale = 1;
    return t;
  }
  __extends(_creator, e);
  _creator.prototype.onLoad = function () {
    this.node.tss = this;
    this.normalScale = this.node.scale;
    this.node.runAction(cc.repeatForever(cc.sequence(cc.scaleTo(this.time, this.normalScale * this.toScale), cc.scaleTo(this.time, this.normalScale), cc.delayTime(this.delay))));
  };
  __decorate([_property({
    type: cc.Float
  })], _creator.prototype, "toScale", undefined);
  __decorate([_property({
    type: cc.Float
  })], _creator.prototype, "time", undefined);
  __decorate([_property({
    type: cc.Float
  })], _creator.prototype, "delay", undefined);
  return __decorate([_ccclass, _menu("UI组件/UIScale")], _creator);
}(cc.Component);
exports.default = _def_UIScale;